:root {
    --primary-bg: #27a39b;
    /* --navbar-bg: #1f7e77; */
    --text-white: #ffffff;
    --text-dark: #0a3442;
    --text-muted: #666;
    --text-hover: #dcdcdc;
    --gradient-start: #d95eff;
    --gradient-end: #5e8bff;
    --heading-color: #0A3442;
    --shadow-color: rgba(0, 0, 0, 0.2);
    --bg-light: #eafaf8;
    --card-bg: linear-gradient(180deg, #dff6f3, #038378);
    --radius: 20px;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Zain', sans-serif;
  }
  
  body {
    background-color: #ffffff;
    direction: rtl;
  }
  
  /* النافبار والهيرو من landing.css ليكونوا مطابقين لصفحة About */

  .courses-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: linear-gradient(135deg, var(--primary-bg) 0%, #2b8f8d 100%);
    padding: 24px 30px;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(10, 52, 66, 0.15);
    margin: 32px auto 24px;
    max-width: 1200px;
    min-height: 100px;
    color: var(--text-white);
    text-align: center;
  }

  .courses-header h2 {
    margin: 0;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--text-white);
  }

  .courses-header img {
    width: 56px;
    height: 56px;
    object-fit: contain;
  }

  .courses-header-section {
    padding: 0 5%;
    box-sizing: border-box;
  }

  .courses-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
  }

  @media (max-width: 991px) {
    .hero-content {
      flex-direction: column;
      text-align: center;
    }
    .hero-text, .hero-image {
      max-width: 100%;
    }
  } 



  /* العنوان */
.section-title {
  font-size: 36px;
  font-weight: bold;
  margin: 40px 0 25px;
  padding-right: 10px;
  text-align: right;
}
.main-section {
  padding: 24px 5% 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 0 20px;
}

h2 {
  text-align: right;
  color: #006064;
  margin-bottom: 20px;
}

/* سكشن البرامج: شاشات كبيرة = كروت مرنة جنب بعض، لما السطر يخلص البرنامج الجديد ينزل سطر جديد */
.main-section .courses {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 24px;
  margin-bottom: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.card {
  background-color: #fff;
  border-radius: 12px;
  border: 4px solid #33A5A0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  min-width: 0;
  margin: 0;
}





.status-dot {
position: absolute;
top: 12px;
right: 12px; /* ← بدّلنا الاتجاه */
width: 12px;
height: 12px;
border-radius: 50%;
}

.status-red {
  background-color: red;
}

.status-green {
  background-color: green;
}


.card img {
  width: 100%;
  aspect-ratio: 252 / 220;
  max-height: 240px;
  object-fit: cover;
  object-position: center;
  display: block;
}




.card h3 {
  font-size: 18px;
  font-weight: bold;
  color: #1F6271;
  margin: 12px 10px 6px;
}

.card p.description {
  font-size: 13px;
  color: #555;
  margin-bottom: 6px;
  text-align: right;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.card p.date {
  font-size: 13px;
  color: #777;
  margin-bottom: 6px;
}

.card p.price {
  font-size: 16px;
  font-weight: bold;
  color: #FFC300;
  margin-bottom: 12px;
  text-align: center;
}

.buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 0 10px 12px;
}

.buttons button {
  background-color: transparent;
  border: 3px solid #0A3442;
  color: #0A3442;
  border-radius: 31px !important  ;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.relist-btn {
  text-decoration: none; /* لإزالة الخط تحت النص */
}



/* .remove-btn:hover {
  background-color: red;
  color: white;
  border: red;
}
.edit-btn:hover {
  background-color: green;
  color: white;
  border: green;
} */

.price-relist {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px 16px;
  gap: 10px;
}

.relist-btn {
  background-color: white;
  color: #0A3442;
  border: #0A3442 solid 3px;
  border-radius: 31px !important  ;
   
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.relist-btn:hover {
  background-color: #105060;
  color: white;
  transform: scale(1.05);
}

.price-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px 12px;
  gap: 10px;
}

@media (max-width: 992px) {
  .courses-header-section {
    padding: 0 4%;
  }
  .courses-header {
    padding: 18px 20px;
    margin-left: 0;
    margin-right: 0;
  }
  .courses-header h2 {
    font-size: 1.55rem;
  }
  .courses-header img {
    width: 44px;
    height: 44px;
  }
  .main-section {
    padding: 16px 4% 32px;
  }
}

@media (max-width: 900px) {
  .courses {
    gap: 20px;
  }

  .card img {
    max-height: 200px;
  }

  .card h3 {
    font-size: 16px;
  }

  .card p.description,
  .card p.date,
  .card p.price {
    font-size: 14px;
  }

  .buttons button {
    font-size: 12px;
    padding: 6px 12px;
  }

  .price-relist {
    flex-wrap: wrap;
    gap: 8px;
  }
}

@media (max-width: 768px) {
  .courses-header-section {
    padding: 0 3%;
  }
  .courses-header {
    padding: 16px 16px;
    margin-left: 0;
    margin-right: 0;
  }
  .courses-header h2 {
    font-size: 1.4rem;
  }
  .courses-header img {
    width: 40px;
    height: 40px;
  }
  .main-section {
    padding: 12px 3% 28px;
  }
  .courses {
    gap: 18px;
    max-width: 100%;
  }
  .card h3 {
    font-size: 1.05rem;
  }
  .card p.description,
  .card p.price {
    font-size: 0.95rem;
  }
}

@media (max-width: 600px) {
  .buttons {
    flex-direction: column;
  }

  .price-relist {
    flex-direction: column;
    gap: 8px;
  }

  .relist-btn,
  .buttons button {
    padding: 10px;
    font-size: 12px;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }

  .card img {
    max-height: 200px;
    aspect-ratio: 16 / 10;
  }

  .card {
    max-width: 100%;
  }

  .card h3 {
    font-size: 1rem;
  }

  .card p.price {
    font-size: 14px;
    margin-bottom: 8px;
  }
}

@media (max-width: 480px) {
  .courses-header-section {
    padding: 0 12px;
  }
  .courses-header {
    padding: 14px 12px;
    margin-left: 0;
    margin-right: 0;
  }
  .courses-header h2 {
    font-size: 1.2rem;
  }
  .courses-header img {
    width: 36px;
    height: 36px;
  }
  .main-section {
    padding: 10px 12px 24px;
  }
  .courses {
    gap: 20px;
  }
  .section-title {
    font-size: 1.5rem;
  }
}


/* تكرار القواعد محذوف - الاعتماد على الـ grid أعلاه مع auto-fill و minmax */






   /* Footer */
   footer {
    width: 100%;
    background-color: #0e3e46;
    color: white;
    padding: 40px 0 0;
    box-sizing: border-box;
  }
  
  .footer-top {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
  }
  
  .footer-column {
    flex: 1 1 200px;
    min-width: 220px;
  }
  
  .footer-column h3 {
    color: #3db8a9;
    font-size: 1.2rem;
    margin-bottom: 15px;
  }
  
  .footer-column p,
  .footer-column a {
    font-size: 0.95rem;
    color: white;
    text-decoration: none;
    margin-bottom: 10px;
    display: block;
  }
  
  .footer-column a:hover {
    text-decoration: none;
    color: orange;
  }
  
  .footer-logo-text {
    font-size: 0.95rem;
  }
  
  .section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
  }
  
  .section .icon {
    width: 80px;
    height: 80px;
  }
  
  .social-icons img {
    width: 30px;
    height: 30px;
  }
  
  .footer-bottom {
    background-color: #36b7a9;
    color: #fff;
    padding: 10px 20px;
    font-size: 0.9rem;
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
  }
  
  .footer-left, .footer-right {
    display: flex;
    align-items: center;
  }
  
  .footer-left {
    justify-content: flex-start;
  }
  
  .footer-right {
    justify-content: flex-end;
  }
  
  .footer-bottom a {
    color: orange;
    font-weight: bold;
    text-decoration: none;
  }
  
  .social-icons img:hover {
    border-radius: 50%;
    background-color: #038378;
  }
  
  .footer-column i {
    margin-left: 8px;
    color: #3db8a9;
    transition: color 0.3s ease;
  }
  
  .footer-column a {
    color: white;
    text-decoration: none; /* نلغي الخط تحت النص */
    transition: color 0.3s ease;
  }
  
  .footer-column a:hover {
    color: #FFC300; /* تغيير اللون فقط عند الوقوف */
    text-decoration: none; /* نتأكد إنه مفيش خط */
  }
  
  
  
  @media (max-width: 768px) {
    .footer-top {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }
  
    .footer-column {
      min-width: 100%;
    }
  
    .social-icons {
      justify-content: center;
    }
  }